<%-- 
    Document   : Dashboard
    Created on : Mar 12, 2012, 9:22:41 AM
    Author     : Violet_Ink
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" title="default" />
        <script type="text/javascript" src="js/common.js"></script>
        <title>All Product Type</title>
    </head>
    <body>
        <div id="page-top-outer">
            <div id="page-top">
                    <div id="logo">
                        <a href=""><img src="images/shared/logo.png" width="156" height="40" alt="" /></a>
                    </div>
                    <div id="top-search">
                        <form action="ProductTypeController">
                        <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td><input type="text" name="txtSearch" value="" class="top-search-inp" /></td>
                            <td>
                                <input type="submit" name="action" value="Search" style="background-image: url(mages/shared/top_search_btn.gif)" />
                            </td>
                        </tr>
                        </table>
                        </form>
                    </div>
                    <div class="clear"></div>
            </div>
        </div>
        <div class="clear">&nbsp;</div>
        <div class="nav-outer-repeat">
            <div class="nav-outer">
                <div id="nav-right">
                    <div class="nav-divider">&nbsp;</div>
                    <div class="showhide-account"><img src="images/shared/nav/nav_myaccount.gif" width="93" height="14" alt="" /></div>
                    <div class="nav-divider">&nbsp;</div>
                    <a href="" id="logout"><img src="images/shared/nav/nav_logout.gif" width="64" height="14" alt="" /></a>
                    <div class="clear">&nbsp;</div>
                </div>
                <div class="nav">
                    <div class="table">
                        <ul class="current">
                            <li><a href="#nogo"><b>Dashboard</b></a></li>
                        </ul>
                        <div class="nav-divider">&nbsp;</div>
                        <ul class="select">
                            <li><a href="#nogo"><b>Products</b></a>
                                <div class="select_sub">
                                    <ul class="sub">
                                        <li><a href="#nogo">View all products</a></li>
                                        <li><a href="#nogo">Add product</a></li>
                                    </ul>
                                </div>
                            </li>
                        </ul>
                        <div class="nav-divider">&nbsp;</div>
                        <ul class="select">
                            <li><a href="#nogo"><b>Product Type</b></a>
                                <div class="select_sub">
                                    <ul class="sub">
                                        <li><a href="producttype.jsp">View All Product Type</a></li>
                                        <li><a href="#nogo">Add Product Type</a></li>
                                    </ul>
                                </div>
                            </li>
                        </ul>
                        <div class="nav-divider">&nbsp;</div>
                        <ul class="select">
                            <li><a href="#nogo"><b>Customers</b></a>
                                <div class="select_sub">
                                    <ul class="sub">
                                        <li><a href="#nogo">View All Customer</a></li>
                                        <li><a href="#nogo">Add New Customer</a></li>
                                    </ul>
                                </div>
                            </li>
                        </ul>
                        <div class="nav-divider">&nbsp;</div>
                        <ul class="select">
                            <li><a href="#nogo"><b>Orders</b></a>
                                <div class="select_sub">
                                    <ul class="sub">
                                        <li><a href="#nogo">View All Orders</a></li>
                                        <li><a href="#nogo">Order Report</a></li>
                                    </ul>
                                </div>
                            </li>
                        </ul>
                        <div class="nav-divider">&nbsp;</div>
                        <ul class="select">
                            <li><a href="#nogo"><b>Users</b></a>
                                <div class="select_sub">
                                    <ul class="sub">
                                        <li><a href="#nogo">View All Users</a></li>
                                        <li><a href="#nogo">Add New User</a></li>
                                    </ul>
                                </div>
                            </li>
                        </ul>
                        <div class="clear"></div>
                    </div>
                    <div class="clear"></div>
                </div>

            </div>
            <div class="clear"></div>
        </div>
        <div id="content-outer">
            <div id="content">
                <div id="page-heading">
                        <h1>Wine Shopping Online Dashboard</h1>
                </div>
                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
                    <tr>
                        <th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
                        <th class="topleft"></th>
                        <td id="tbl-border-top">&nbsp;</td>
                        <th class="topright"></th>
                        <th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
                    </tr>
                    <tr>
                        <td id="tbl-border-left"></td>
                        <td>
                            <div id="content-table-inner">
                                <div id="table-content">
                                    <form id="ProductTypeController" action="">
                                        <c:set var="protype" value="${requestScope.PROTYPE}"/>
                                        <c:if test="${not empty protype}">
                                            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="datatable">
                                                <thead>
                                                    <th class="table-header"><a>No.</a>	</th>
                                                    <th class="table-header-repeat line-left minwidth-1"><a href="">ID</a>	</th>
                                                    <th class="table-header-repeat line-left minwidth-1"><a href="">Product Type</a></th>
                                                    <th class="table-header-repeat line-left"><a href="">Note</a></th>
                                                    <th class="table-header-options line-left"><a href="">Options</a></th>
                                                </thead>
                                                <tbody>
                                                    <c:set var="count" value="0"/>
                                                    <c:forEach var="producttype" items="${protype}">
                                                        <c:set var="count" value="${count + 1}"/>
                                                        <tr>
                                                            <td>${count}</td>
                                                            <td>${producttype.producttypeid}</td>
                                                            <td>${producttype.producttypename}</td>
                                                            <td>${producttype.note}</td>
                                                            <c:url var="edit" value="ProductTypeController">
                                                                <c:param name="action" value="Edit"/>
                                                                <c:param name="producttypeid" value="${producttype.producttypeid}"/>
                                                            </c:url>
                                                            <c:url var="delete" value="ProductTypeController">
                                                                <c:param name="action" value="Delete"/>
                                                                <c:param name="producttypeid" value="${producttype.producttypeid}"/>
                                                            </c:url>
                                                            <td class="options-width">
                                                                <a href="${edit}" title="Edit" class="icon-1 info-tooltip"></a>
                                                                <a href="${delete}" title="Delete" class="icon-2 info-tooltip"></a>
                                                            </td>
                                                        </tr>
                                                    </c:forEach>
                                                </tbody>
                                            </table>
                                        </c:if>
                                    </form>
                                </div>
                                <div class="clear"></div>
                            </div>
                        </td>
                        <td id="tbl-border-right"></td>
                    </tr>
                    <tr>
                        <th class="sized bottomleft"></th>
                        <td id="tbl-border-bottom">&nbsp;</td>
                        <th class="sized bottomright"></th>
                    </tr>
                </table>
                <div class="clear">&nbsp;</div>
            </div>
            <div class="clear">&nbsp;</div>
        </div>
        <div class="clear">&nbsp;</div>
        <div id="footer">
            <div id="footer-left">
            Administrator Management &copy; Copyright Wine Shopping Online Co;. Ltd. <a href="http://nganhangweb.vn/">www.wine4u.com</a>. All rights reserved.</div>
            <div class="clear">&nbsp;</div>
        </div>
    </body>
    <script type="text/javascript">
        <c:import url="WEB-INF/products.xml" var="productDoc"/>
    </script>
</html>
